Optimal. Leaf size=238 \[ \frac{e \sqrt{b x+c x^2} \left (2 c e x \left (-4 b c (A e+B d)+8 A c^2 d+5 b^2 B e\right )+12 b^2 c e (A e+3 B d)-8 b c^2 d (3 A e+2 B d)+32 A c^3 d^2-15 b^3 B e^2\right )}{4 b^2 c^3}+\frac{3 e \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right ) \left (4 A c e (2 c d-b e)+B \left (5 b^2 e^2-12 b c d e+8 c^2 d^2\right )\right )}{4 c^{7/2}}-\frac{2 (d+e x)^2 \left (x \left (-b c (A e+B d)+2 A c^2 d+b^2 B e\right )+A b c d\right )}{b^2 c \sqrt{b x+c x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.21506, antiderivative size = 238, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {818, 779, 620, 206} \[ \frac{e \sqrt{b x+c x^2} \left (2 c e x \left (-4 b c (A e+B d)+8 A c^2 d+5 b^2 B e\right )+12 b^2 c e (A e+3 B d)-8 b c^2 d (3 A e+2 B d)+32 A c^3 d^2-15 b^3 B e^2\right )}{4 b^2 c^3}+\frac{3 e \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right ) \left (4 A c e (2 c d-b e)+B \left (5 b^2 e^2-12 b c d e+8 c^2 d^2\right )\right )}{4 c^{7/2}}-\frac{2 (d+e x)^2 \left (x \left (-b c (A e+B d)+2 A c^2 d+b^2 B e\right )+A b c d\right )}{b^2 c \sqrt{b x+c x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 818
Rule 779
Rule 620
Rule 206
Rubi steps
\begin{align*} \int \frac{(A+B x) (d+e x)^3}{\left (b x+c x^2\right )^{3/2}} \, dx &=-\frac{2 (d+e x)^2 \left (A b c d+\left (2 A c^2 d+b^2 B e-b c (B d+A e)\right ) x\right )}{b^2 c \sqrt{b x+c x^2}}+\frac{2 \int \frac{(d+e x) \left (\frac{1}{2} b (b B+4 A c) d e+\frac{1}{2} e \left (8 A c^2 d+5 b^2 B e-4 b c (B d+A e)\right ) x\right )}{\sqrt{b x+c x^2}} \, dx}{b^2 c}\\ &=-\frac{2 (d+e x)^2 \left (A b c d+\left (2 A c^2 d+b^2 B e-b c (B d+A e)\right ) x\right )}{b^2 c \sqrt{b x+c x^2}}+\frac{e \left (32 A c^3 d^2-15 b^3 B e^2+12 b^2 c e (3 B d+A e)-8 b c^2 d (2 B d+3 A e)+2 c e \left (8 A c^2 d+5 b^2 B e-4 b c (B d+A e)\right ) x\right ) \sqrt{b x+c x^2}}{4 b^2 c^3}+\frac{\left (3 e \left (4 A c e (2 c d-b e)+B \left (8 c^2 d^2-12 b c d e+5 b^2 e^2\right )\right )\right ) \int \frac{1}{\sqrt{b x+c x^2}} \, dx}{8 c^3}\\ &=-\frac{2 (d+e x)^2 \left (A b c d+\left (2 A c^2 d+b^2 B e-b c (B d+A e)\right ) x\right )}{b^2 c \sqrt{b x+c x^2}}+\frac{e \left (32 A c^3 d^2-15 b^3 B e^2+12 b^2 c e (3 B d+A e)-8 b c^2 d (2 B d+3 A e)+2 c e \left (8 A c^2 d+5 b^2 B e-4 b c (B d+A e)\right ) x\right ) \sqrt{b x+c x^2}}{4 b^2 c^3}+\frac{\left (3 e \left (4 A c e (2 c d-b e)+B \left (8 c^2 d^2-12 b c d e+5 b^2 e^2\right )\right )\right ) \operatorname{Subst}\left (\int \frac{1}{1-c x^2} \, dx,x,\frac{x}{\sqrt{b x+c x^2}}\right )}{4 c^3}\\ &=-\frac{2 (d+e x)^2 \left (A b c d+\left (2 A c^2 d+b^2 B e-b c (B d+A e)\right ) x\right )}{b^2 c \sqrt{b x+c x^2}}+\frac{e \left (32 A c^3 d^2-15 b^3 B e^2+12 b^2 c e (3 B d+A e)-8 b c^2 d (2 B d+3 A e)+2 c e \left (8 A c^2 d+5 b^2 B e-4 b c (B d+A e)\right ) x\right ) \sqrt{b x+c x^2}}{4 b^2 c^3}+\frac{3 e \left (4 A c e (2 c d-b e)+B \left (8 c^2 d^2-12 b c d e+5 b^2 e^2\right )\right ) \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{4 c^{7/2}}\\ \end{align*}
Mathematica [A] time = 0.245299, size = 229, normalized size = 0.96 \[ \frac{\sqrt{c} \left (4 A c \left (b^2 c e^2 x (e x-6 d)+3 b^3 e^3 x-2 b c^2 d^2 (d-3 e x)-4 c^3 d^3 x\right )+b B x \left (b^2 c e^2 (36 d-5 e x)-15 b^3 e^3+2 b c^2 e \left (-12 d^2+6 d e x+e^2 x^2\right )+8 c^3 d^3\right )\right )+3 b^{5/2} e \sqrt{x} \sqrt{\frac{c x}{b}+1} \sinh ^{-1}\left (\frac{\sqrt{c} \sqrt{x}}{\sqrt{b}}\right ) \left (4 A c e (2 c d-b e)+B \left (5 b^2 e^2-12 b c d e+8 c^2 d^2\right )\right )}{4 b^2 c^{7/2} \sqrt{x (b+c x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.011, size = 450, normalized size = 1.9 \begin{align*}{\frac{B{e}^{3}{x}^{3}}{2\,c}{\frac{1}{\sqrt{c{x}^{2}+bx}}}}-{\frac{5\,B{e}^{3}b{x}^{2}}{4\,{c}^{2}}{\frac{1}{\sqrt{c{x}^{2}+bx}}}}-{\frac{15\,B{e}^{3}{b}^{2}x}{4\,{c}^{3}}{\frac{1}{\sqrt{c{x}^{2}+bx}}}}+{\frac{15\,B{e}^{3}{b}^{2}}{8}\ln \left ({ \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ){c}^{-{\frac{7}{2}}}}+{\frac{{x}^{2}A{e}^{3}}{c}{\frac{1}{\sqrt{c{x}^{2}+bx}}}}+3\,{\frac{{x}^{2}Bd{e}^{2}}{c\sqrt{c{x}^{2}+bx}}}+3\,{\frac{Abx{e}^{3}}{{c}^{2}\sqrt{c{x}^{2}+bx}}}+9\,{\frac{Bbdx{e}^{2}}{{c}^{2}\sqrt{c{x}^{2}+bx}}}-{\frac{3\,Ab{e}^{3}}{2}\ln \left ({ \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ){c}^{-{\frac{5}{2}}}}-{\frac{9\,bBd{e}^{2}}{2}\ln \left ({ \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ){c}^{-{\frac{5}{2}}}}-6\,{\frac{xAd{e}^{2}}{c\sqrt{c{x}^{2}+bx}}}-6\,{\frac{Bx{d}^{2}e}{c\sqrt{c{x}^{2}+bx}}}+3\,{\frac{Ad{e}^{2}}{{c}^{3/2}}\ln \left ({\frac{b/2+cx}{\sqrt{c}}}+\sqrt{c{x}^{2}+bx} \right ) }+3\,{\frac{B{d}^{2}e}{{c}^{3/2}}\ln \left ({\frac{b/2+cx}{\sqrt{c}}}+\sqrt{c{x}^{2}+bx} \right ) }+6\,{\frac{xA{d}^{2}e}{b\sqrt{c{x}^{2}+bx}}}+2\,{\frac{Bx{d}^{3}}{b\sqrt{c{x}^{2}+bx}}}-2\,{\frac{A{d}^{3} \left ( 2\,cx+b \right ) }{{b}^{2}\sqrt{c{x}^{2}+bx}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.62401, size = 1434, normalized size = 6.03 \begin{align*} \left [\frac{3 \,{\left ({\left (8 \, B b^{2} c^{3} d^{2} e - 4 \,{\left (3 \, B b^{3} c^{2} - 2 \, A b^{2} c^{3}\right )} d e^{2} +{\left (5 \, B b^{4} c - 4 \, A b^{3} c^{2}\right )} e^{3}\right )} x^{2} +{\left (8 \, B b^{3} c^{2} d^{2} e - 4 \,{\left (3 \, B b^{4} c - 2 \, A b^{3} c^{2}\right )} d e^{2} +{\left (5 \, B b^{5} - 4 \, A b^{4} c\right )} e^{3}\right )} x\right )} \sqrt{c} \log \left (2 \, c x + b + 2 \, \sqrt{c x^{2} + b x} \sqrt{c}\right ) + 2 \,{\left (2 \, B b^{2} c^{3} e^{3} x^{3} - 8 \, A b c^{4} d^{3} +{\left (12 \, B b^{2} c^{3} d e^{2} -{\left (5 \, B b^{3} c^{2} - 4 \, A b^{2} c^{3}\right )} e^{3}\right )} x^{2} +{\left (8 \,{\left (B b c^{4} - 2 \, A c^{5}\right )} d^{3} - 24 \,{\left (B b^{2} c^{3} - A b c^{4}\right )} d^{2} e + 12 \,{\left (3 \, B b^{3} c^{2} - 2 \, A b^{2} c^{3}\right )} d e^{2} - 3 \,{\left (5 \, B b^{4} c - 4 \, A b^{3} c^{2}\right )} e^{3}\right )} x\right )} \sqrt{c x^{2} + b x}}{8 \,{\left (b^{2} c^{5} x^{2} + b^{3} c^{4} x\right )}}, -\frac{3 \,{\left ({\left (8 \, B b^{2} c^{3} d^{2} e - 4 \,{\left (3 \, B b^{3} c^{2} - 2 \, A b^{2} c^{3}\right )} d e^{2} +{\left (5 \, B b^{4} c - 4 \, A b^{3} c^{2}\right )} e^{3}\right )} x^{2} +{\left (8 \, B b^{3} c^{2} d^{2} e - 4 \,{\left (3 \, B b^{4} c - 2 \, A b^{3} c^{2}\right )} d e^{2} +{\left (5 \, B b^{5} - 4 \, A b^{4} c\right )} e^{3}\right )} x\right )} \sqrt{-c} \arctan \left (\frac{\sqrt{c x^{2} + b x} \sqrt{-c}}{c x}\right ) -{\left (2 \, B b^{2} c^{3} e^{3} x^{3} - 8 \, A b c^{4} d^{3} +{\left (12 \, B b^{2} c^{3} d e^{2} -{\left (5 \, B b^{3} c^{2} - 4 \, A b^{2} c^{3}\right )} e^{3}\right )} x^{2} +{\left (8 \,{\left (B b c^{4} - 2 \, A c^{5}\right )} d^{3} - 24 \,{\left (B b^{2} c^{3} - A b c^{4}\right )} d^{2} e + 12 \,{\left (3 \, B b^{3} c^{2} - 2 \, A b^{2} c^{3}\right )} d e^{2} - 3 \,{\left (5 \, B b^{4} c - 4 \, A b^{3} c^{2}\right )} e^{3}\right )} x\right )} \sqrt{c x^{2} + b x}}{4 \,{\left (b^{2} c^{5} x^{2} + b^{3} c^{4} x\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (A + B x\right ) \left (d + e x\right )^{3}}{\left (x \left (b + c x\right )\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.34671, size = 339, normalized size = 1.42 \begin{align*} -\frac{\frac{8 \, A d^{3}}{b} -{\left ({\left (\frac{2 \, B x e^{3}}{c} + \frac{12 \, B b^{2} c^{2} d e^{2} - 5 \, B b^{3} c e^{3} + 4 \, A b^{2} c^{2} e^{3}}{b^{2} c^{3}}\right )} x + \frac{8 \, B b c^{3} d^{3} - 16 \, A c^{4} d^{3} - 24 \, B b^{2} c^{2} d^{2} e + 24 \, A b c^{3} d^{2} e + 36 \, B b^{3} c d e^{2} - 24 \, A b^{2} c^{2} d e^{2} - 15 \, B b^{4} e^{3} + 12 \, A b^{3} c e^{3}}{b^{2} c^{3}}\right )} x}{4 \, \sqrt{c x^{2} + b x}} - \frac{3 \,{\left (8 \, B c^{2} d^{2} e - 12 \, B b c d e^{2} + 8 \, A c^{2} d e^{2} + 5 \, B b^{2} e^{3} - 4 \, A b c e^{3}\right )} \log \left ({\left | -2 \,{\left (\sqrt{c} x - \sqrt{c x^{2} + b x}\right )} \sqrt{c} - b \right |}\right )}{8 \, c^{\frac{7}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]